package com.huarui.sale.dao;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.IBaseDao;

import com.huarui.sale.model.SaleItem;

public interface ISaleItemDao extends IBaseDao {
 
	/**
	 * 查询销售明细
	 * @param saleId
	 * @return
	 */
	public List<Map<String,Object>> getSaleItemForMap(Map<String,Object> queryMap);

	public Integer getSaleIdByInventoryIdBySeller(Integer sourceInventoryId);

	public void batchInsertSaleItem(List<SaleItem> saleItems);

	public void batchUpdateSaleItem(List<SaleItem> saleItems);



	@SuppressWarnings("unchecked")
	public void batchDeleteSaleItemByIds(List<Map> saleItemDeletedIds);

	@SuppressWarnings("unchecked")
	public Integer getSaleItemCountByConditions(Map queryMap);

	@SuppressWarnings("unchecked")
	public List<Map> getSaleItemForMapByConditions(Map queryMap);
	
	
	
}
